export default {
    //累加
    increment(state) {
        state.count++
    },
    //累减
    decrement(state) {
        state.count--
    },
    //加N
    incrementN(state, { n }) {
        state.count += n
    },
    //等待累加
    waitIncrement(state) {
        state.count++
    },
    //等待加5
    waitIncrementN(state, { n }) {
        state.count += n
    }
}